<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>接口文档</title>
    <style>
        body {
            width: 99%;
            height: 100%;
        }

        .main {
            width: 80%;
            position: relative;
            margin: 20px auto;
        }

        table {
            width: 100%;
            border: 1px solid #eaeaea;
            text-indent: 10px;
            font-size: 14px;
            color: #606266;
            min-width: 595px;
            margin-right: 20px;
            overflow-x: auto;
        }

        table thead tr {
            line-height: 52px;
            text-align: left;
            background-color: #eef1f6;
            color: #606266;
        }

        table tbody tr {
            line-height: 49px;
            padding: 0px 10px;
        }

        table tbody tr:hover {
            background-color: #F0F8FD;
        }

        table tbody tr td {
            border: 1px solid #eaeaea;
        }

        textarea {
            width: 100%;
            min-height: 150px;
            border: 1px solid #eaeaea;
            line-height: 28px;
            font-size: 14px;
            color: #606266;
        }
    </style>
</head>
<body>
<div id="app">
    <#list table as t>
    <div class="main">
        <h3>${t.tag}</h3>
        <p>接口：${t.url}</p>
        <p>方式：${t.requestType}</p>
        <p>接口描述：${t.description}</p>
        <p>请求类型：${t.requestForm}</p>
        <p>返回类型：${t.responseForm} </p>

        <table cellspacing="0">
            <thead>
            <tr>
                <th>参数名</th>
                <th>数据类型</th>
                <th>参数类型</th>
                <th>是否必填</th>
                <th>说明</th>
            </tr>
            </thead>
            <tbody>
            <#list t.requestList as req>
            <tr>
                <td>${req.name}</td>
                <td>${req.type}</td>
                <td>${req.paramType}</td>
                <#if req.require == true>
                <td>Y</td>
                <#else>
                <td>N</td>
            </
            #if>
            <td>${req.remark}</td>
            </tr>
            </
            #list>
            </tbody>
        </table>
        <h4>响应</h4>
        <textarea placeholder="请输入内容" disabled>{"code":0,"massage":"成功或错误时的信息"}</textarea>
        <ul>
            <li><span>code：结果码</span></li>
            <li><span>message：成功或者错误时的消息，默认为空，为空时有可能不返回该字段</span></li>
        </ul>
        <br>
        <br>
    </div>
</
#list>
</div>
</body>
</html>